package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.bean.Dish;
import com.itheima.dto.DishDto;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface DishService extends IService<Dish> {

    @Transactional
    void saveWithFlavors(DishDto dishDto);

    DishDto getByIdWithFlavors(Long id);

    @Transactional
    void updateWithFlavors(DishDto dishDto);

    @Transactional
    void deleteById(List<Long> ids);

    @Transactional
    void status(Integer status, List<Long> ids);
}
